package com.neusoft.elmboot.service.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neusoft.elmboot.mapper.WalletRulesMapper;
import com.neusoft.elmboot.po.WalletRules;
import com.neusoft.elmboot.service.WalletRulesService;

@Service
public class WalletRulesServiceImpl implements WalletRulesService{

	@Autowired
	private WalletRulesMapper walletRulesMapper;
	
	@Override
	public int saveRule(WalletRules walletRules) {
		return walletRulesMapper.saveRule(walletRules);
	}
	
	@Override
	public int changeRule(WalletRules walletRules) {
		return walletRulesMapper.changeRule(walletRules);
	}
	
	@Override
	public WalletRules getRulesBytype(int type) {
		return walletRulesMapper.getRulesBytype(type);
	}
}